package com.lsjenglish.englishstudy.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author Lsj
 * @version 1.0
 * @date 2021/7/19 19:51
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ShowEnglishWorldEntity {

    /**
     * 用户id
     */
    @Id
    private Long userId;

    /**
     * 用户名字
     */
    private String userName;

    /**
     * 用户密码
     */
    private String userPassword;


    /**
     * 战斗力id
     */
    private int swordId;

    /**
     * 战斗力
     */
    private int swordNum;

    /**
     * 等级
     */
    private String swordLevel;

    /**
     * 经验条
     */
    private Long swordLevelCache;

    /**
     * 用户和战斗力外键
     */
    private int swordUserId;
}
